@page "/"

<h1>Blazor Multi Render</h1>


<div class="row">
    <div class="col-md-3">
        <h2>SSR</h2>
        @_message
        <EditForm method="POST" EditContext="_editContext" FormName="ShowMessage" OnValidSubmit="ShowMessage">
            <button class="btn btn-primary">Show Message</button>
        </EditForm>
    </div>
    <div class="col-md-3">
        <h2>Streaming</h2>
        <Numbers />
    </div>
    <div class="col-md-3">
        <h2>WASM</h2>
        <Wasm.Interactive @rendermode="@RenderMode.InteractiveWebAssembly" />
    </div>
    <div class="col-md-3">
        <h2>Server</h2>
        <Counter @rendermode="@RenderMode.InteractiveServer" />
    </div>
</div>

@code {

    EditContext _editContext = new(string.Empty);

    string _message = string.Empty;

    void ShowMessage()
    {
        _message = "Hello world";
    }
}

